package com.develope.tree.service;

import org.ksoap2.serialization.PropertyInfo;

public abstract class HttpHandler {
	public String operation;
	public PropertyInfo param;
	public PropertyInfo[] params;
	
	

	public  HttpHandler(String operationName, PropertyInfo[] parameters) {
		this.operation = operationName;				
		this.params = parameters;
		 
	}
	public  HttpHandler(String operationName, PropertyInfo parameters) {
		this.operation = operationName;	
		this.param = parameters;
	}
	
	public abstract void onResponse(int errorCode, String result);

	public void execute() {
		new AsyncSoapTask(this).execute();
	}

}